using System.Data.Linq;
using System.Linq;

namespace Magiq.Sql {
    public class MagiqToSqlQueryableFactory {
        public IQueryable<T> GetFrom<T>(EntitySet<T> entitySet) where T : class {
            var entitySetAdapter = new EntitySetAdapter(entitySet);
            return new MagiqToSqlQueryable<T>(entitySetAdapter);
        }
    }
}